﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace BrowserPL3
{
    /// <summary>
    /// Interaction logic for CloseWindow.xaml
    /// </summary>
    public partial class CloseWindow : Window
    {
       
        /// <summary>
        /// close window constructor
        /// <remarks>
        /// 
        /// this window shows when the number of tabs are > 1 and close button clicked</remarks>
        /// </summary>
        public CloseWindow()
        {
            InitializeComponent();
        }
        /// <summary>
        /// close button clicked
        /// <remarks>
        /// it shutdown the app</remarks>
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            App.Current.Shutdown();
        }
        /// <summary>
        /// clancel button clicked
        /// <remarks>
        /// it reterns to the main window</remarks>
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}
